<div id="member-list">
<h1>Medlemslista</h1>
  <table width= 60% cellpadding="5" cellspacing ="0">
    <tr valign="top">
      <td width 60%> 
       <span class "list-title">Namn och Adress</span> <br /> </td>
       <td>               </td>
      <td>Medlemsuppgifter</td>
    </tr>                  
  </table>
   
<table cellpadding="5" cellspacing ="0">
<% for member in @members %>

  <tr valign="top" class="<%= cycle('list-line-odd', 'list-line-even0') %>">
  
     <td width=60%>
      <span class "list-title"><%= h(member.compound_name)%> </span> <br />
      <%= h(member.postal_address)%> <br />
      <%= h(member.postal_code)%> <%= h(member.postal_city)%> <br />
    </td>
    
    <td
    <br />
    <%= h(member.commitment_code)%>   <%= h(member.segment_code)%> <br />
    <%= h(member.active_code)%>   <%= h(member.person_type)%> <br />
    Betalat: <%= h(member.amount_paid)%> kr.
    </td>
    <td class "list-actions">
      <%= link_to 'Visa', :action => 'show', :id => member %> <br />
      <%= link_to 'Ändra', :action => 'edit', :id => member %> <br />
      <%= link_to 'Radera', { :action => 'destroy', :id => member }, :confirm => 'Är du säker?', :post => true %> <br />
    </td>
  </tr>
<% end %>
</table>
</div>

<%= link_to 'Föregående sida', { :page => @member_pages.current.previous } if @member_pages.current.previous %>
<%= link_to 'Nästa sida', { :page => @member_pages.current.next } if @member_pages.current.next %> 

<br />

<%= link_to 'Ny medlem', :action => 'new' %>
